package com.gf.pokemon.platform.exception;

public class PokeException extends Exception{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8655083457836824829L;
	
	   private Integer errorCode;

	    private String errorMsg;

	    public PokeException(Integer errorCode){
	        this.errorCode = errorCode;
	        this.errorMsg = PokeErrorCode.errorMsgMap.get(errorCode);
	    }

	    public PokeException(Integer errorCode,String errorMsg){
	        this.errorCode= errorCode;
	        this.errorMsg = errorMsg;
	    }


	    public Integer getErrorCode() {
	        return errorCode;
	    }

	    public String getErrorMsg() {
	        return errorMsg;
	    }

	    public void setErrorMsg(String errorMsg) {
	        this.errorMsg = errorMsg;
	    }

	    public void setErrorCode(Integer errorCode) {
	        this.errorCode = errorCode;
	    }

}
